var lgc = getCookie("lgc");
if (lgc) {

    // console.log($(".lgc").html(`${lgc}<button class="btn"><span>x</span></button>`).parents(".rightbox"));
    console.log($(".lgc"));
    $(".lgc").html(`${lgc}<button class="btn"><span>退出</span></button>`).parents(".rightbox").css({ width: "150px" });
} else {

    $(document).on("click", ".rightbox", function () {

        location.href = "../html/sign.html"
    })
}
$(document).on("click", ".btn", function () {
    console.log(1);
    delCookie("lgc");
    delCookie("phone");
    alert("是否退出当前用户")
    location.reload();
})